package com.kdtech.entity.data;

import com.kdtech.utils.DateUtils;


/**
 * 视频实体类
 *
 * @author Persh
 *
 */
public class VideoMeta extends AbstractMeta {

	/**
	 * 评论数
	 */
	private Integer commentNum=0;
	/**
	 * 点击数
	 */
	private Integer clickNum=0;

	public Integer getCommentNum() {
		return commentNum;
	}
	public void setCommentNum(Integer commentNum) {
		this.commentNum = commentNum;
	}
	public Integer getClickNum() {
		return clickNum;
	}
	public void setClickNum(Integer clickNum) {
		this.clickNum = clickNum;
	}

	@Override
	public String toString() {
		String strRet="";
		strRet+="url:"+this.getUrl()+"\r\n";
		strRet+="title:"+this.getTitle()+"\r\n";
		strRet+="date="+ (this.getDate()==null?"":DateUtils.format(this.getDate(), "yyyy-MM-dd HH:mm")) + "\r\n";
		strRet+="content:" + getContent()+"\r\n";
		strRet+="author="+this.getAuthor()+"\r\n";
		strRet+="commentNum:" + commentNum+"\r\n";
		strRet+="clickNum:" + clickNum+"\r\n";
		strRet+="updateUrl:" + this.getUpdateUrl()+"\r\n";
		return strRet;
	}

}
